package com.server.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.github.pagehelper.Page;
import com.server.model.Tests;

@Mapper
public interface TestMapper {

	int deleteByPrimaryKey(Long id);

	int insert(Tests record);

	int insertSelective(Tests record);

	Tests selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Tests record);

	int updateByPrimaryKey(Tests record);

	/**
	 * 获取所有数据
	 * 
	 * @return
	 */
	List<Tests> findAll();

	/**
	 * 分页查询数据
	 * 
	 * @return
	 */
	Page<Tests> findByPage();
}
